<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@include file="common/header.jsp"%>
<div class="clearfix"></div>
<div class="row">
	<div class="col-md-12">
		<div class="x_panel">
			<div class="x_title">
				<h2>
					专题列表 <i class="fa fa-user"></i>- 您可以在此添加新的专题。^_^
				</h2>
				<div class="clearfix"></div>
			</div>
			<div class="x_content">
			<c:if test="${matic == null }">
				<form method="post" action="${pageContext.request.contextPath }/thematic/thematicAdd" class="form-inline">
					<div class="form-group">
    					<label for="exampleInputName2">专题名</label>
    					<input type="text" class="form-control" id="name" name="name" >
  					</div>
  					<button type="submit" class="btn btn-default">添加</button>
				</form>
			</c:if>
			<c:if test="${matic != null }">
				<form method="post" action="${pageContext.request.contextPath }/thematic/thematicUpdate" class="form-inline">
					<div class="form-group">
						<input type="hidden" id="id" name="id" value="${matic.id}">
    					<label for="exampleInputName2">专题名</label>
    					<input type="text" class="form-control" id="name" name="name" placeholder="${matic.name }">
  					</div>
  					<button type="submit" class="btn btn-default">修改</button>
				</form>
			</c:if>
			</div>
		</div>
	</div>
</div>
</div>
<%@include file="common/footer.jsp"%>
<script src="${pageContext.request.contextPath }/statics/localjs/rollpage.js"></script>
<script src="${pageContext.request.contextPath }/statics/localjs/applist.js"></script>